<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui, viewport-fit=cover">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>My App</title>
    <link rel="stylesheet" href="../../packages/core/css/framework7.min.css">
    <link rel="stylesheet" href="../../css/framework7-icons.css">
  </head>
  <body>
    <div id="app">
      <div class="view view-main view-init">
        <div class="page">
          <div class="navbar">
            <div class="navbar-inner">
              <div class="left"></div>
              <div class="title">Chips</div>
              <div class="right"></div>
            </div>
          </div>
          <div class="page-content"><div class="block-title">Chips With Text</div>
<div class="block block-strong">
<div class="chip">
<div class="chip-label">Example Chip</div>
</div>
<div class="chip">
<div class="chip-label">Another Chip</div>
</div>
<div class="chip">
<div class="chip-label">One More Chip</div>
</div>
<div class="chip">
<div class="chip-label">Fourth Chip</div>
</div>
<div class="chip">
<div class="chip-label">Last One</div>
</div>
</div>
<div class="block-title">Outline Chips</div>
<div class="block block-strong">
<div class="chip chip-outline">
<div class="chip-label">Example Chip</div>
</div>
<div class="chip chip-outline">
<div class="chip-label">Another Chip</div>
</div>
<div class="chip chip-outline">
<div class="chip-label">One More Chip</div>
</div>
<div class="chip chip-outline">
<div class="chip-label">Fourth Chip</div>
</div>
<div class="chip chip-outline">
<div class="chip-label">Last One</div>
</div>
</div>
<div class="block-title">Icon Chips</div>
<div class="block block-strong">
<div class="chip">
<div class="chip-media bg-color-blue">
<i class="icon f7-icons ios-only">add_round</i>
<i class="icon material-icons md-only">add_circle</i>
</div>
<div class="chip-label">Add Contact</div>
</div>
<div class="chip">
<div class="chip-media bg-color-green">
<i class="icon f7-icons ios-only">compass</i>
<i class="icon material-icons md-only">location_on</i>
</div>
<div class="chip-label">London</div>
</div>
<div class="chip">
<div class="chip-media bg-color-red">
<i class="icon f7-icons ios-only">person</i>
<i class="icon material-icons md-only">person</i>
</div>
<div class="chip-label">John Doe</div>
</div>
</div>
<div class="block-title">Contact Chips</div>
<div class="block block-strong">
<div class="chip">
<div class="chip-media"><img src="http://lorempixel.com/64/64/people/9/"/></div>
<div class="chip-label">Jane Doe</div>
</div>
<div class="chip">
<div class="chip-media"><img src="http://lorempixel.com/64/64/people/9/"/></div>
<div class="chip-label">John Doe</div>
</div>
<div class="chip">
<div class="chip-media"><img src="http://lorempixel.com/64/64/people/9/"/></div>
<div class="chip-label">Adam Smith</div>
</div>
<div class="chip">
<div class="chip-media bg-color-pink">J</div>
<div class="chip-label">Jennifer</div>
</div>
<div class="chip">
<div class="chip-media bg-color-yellow text-color-black">C</div>
<div class="chip-label">Chris</div>
</div>
<div class="chip">
<div class="chip-media bg-color-red">K</div>
<div class="chip-label">Kate</div>
</div>
</div>
<div class="block-title">Deletable Chips / Tags</div>
<div class="block block-strong">
<div class="chip">
<div class="chip-label">Example Chip</div><a href="#" class="chip-delete"></a>
</div>
<div class="chip">
<div class="chip-media bg-color-orange text-color-black">C</div>
<div class="chip-label">Chris</div><a href="#" class="chip-delete"></a>
</div>
<div class="chip">
<div class="chip-media"><img src="http://lorempixel.com/64/64/people/9/"/></div>
<div class="chip-label">Jane Doe</div><a href="#" class="chip-delete"></a>
</div>
<div class="chip">
<div class="chip-label">One More Chip</div><a href="#" class="chip-delete"></a>
</div>
<div class="chip">
<div class="chip-media bg-color-pink">J</div>
<div class="chip-label">Jennifer</div><a href="#" class="chip-delete"></a>
</div>
<div class="chip">
<div class="chip-media"><img src="http://lorempixel.com/64/64/people/9/"/></div>
<div class="chip-label">Adam Smith</div><a href="#" class="chip-delete"></a>
</div>
</div>
<div class="block-title">Color Chips</div>
<div class="block block-strong">
<div class="chip color-red">
<div class="chip-label">Red Chip</div>
</div>
<div class="chip color-green">
<div class="chip-label">Green Chip</div>
</div>
<div class="chip color-blue">
<div class="chip-label">Blue Chip</div>
</div>
<div class="chip color-orange">
<div class="chip-label">Orange Chip</div>
</div>
<div class="chip color-pink">
<div class="chip-label">Pink Chip</div>
</div>
<div class="chip chip-outline color-red">
<div class="chip-label">Red Chip</div>
</div>
<div class="chip chip-outline color-green">
<div class="chip-label">Green Chip</div>
</div>
<div class="chip chip-outline color-blue">
<div class="chip-label">Blue Chip</div>
</div>
<div class="chip chip-outline color-orange">
<div class="chip-label">Orange Chip</div>
</div>
<div class="chip chip-outline color-pink">
<div class="chip-label">Pink Chip</div>
</div>
</div>
          </div>
        </div>
      </div>
    </div>
    <script type="text/javascript" src="../../packages/core/js/framework7.min.js"></script>
    <script>
      var theme = 'ios';
      if (location.href.indexOf('theme=md') >= 0) theme = 'md';
      var plugin = {
        params: {
          theme: theme,
          root: '#app',
        }
      };
      if (Framework7.use) Framework7.use(plugin);
      else if (Framework7.Class && Framework7.Class.use) Framework7.Class.use(plugin);
      
    </script>
    <script>
      var app = new Framework7();
      
      var $$ = Dom7;
      
      $$('.chip-delete').on('click', function (e) {
          e.preventDefault();
          var chip = $$(this).parents('.chip');
          app.dialog.confirm('Do you want to delete this tiny demo Chip?', function () {
              chip.remove();
          });
      });
    </script>
  </body>
</html>